package com.fengyi.library.service;

import com.fengyi.library.model.User;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;

public interface UserService extends UserDetailsService {
    User findById(Integer id);
    User findByUsername(String username);
    List<User> findAllUsers();
    User registerNewStudent(User user);
    User saveUser(User user);
    void deleteUser(Integer id);
    boolean existsByUsername(String username);
    boolean existsByEmail(String email);
}
